package stud.mpgame.network.service.ping;

import stud.mpgame.network.MessageDescription;

public class PingRequestMessageDescription extends MessageDescription {

    private static final int ID = -2; //negative value for special tasks

    public int getID() {
        return ID;
    }

    private static PingRequestMessageDescription instance = null;

    private PingRequestMessageDescription() {
        this.autoResponseFlag = true;
    }

    public static PingRequestMessageDescription getInstance() {
        if(instance == null) {
            instance = new PingRequestMessageDescription();
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

}
